#pragma once
#include "define.h"

namespace ut
{
    int fps();  // get fps

    std::string utf32_to_utf8(std::u32string str);  // utf32 change to utf8
    
    inline int b2c(int b) // block to col
    {
        return 2 * b - 1;
    }

    bool timer(std::chrono::microseconds sec);
    double time();
}